<%@ page language="java"  pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core"  prefix="c" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<meta http-equiv="Content-Type" content="text/html; charset=gbk" />
<title>新闻发布系统管理后台</title>
<link href="news/css/admin.css" rel="stylesheet" type="text/css" />
</head>


<body>
	<jsp:include page="/AdminHeaderServlet"></jsp:include>
	<div id="main">
		<jsp:include page="/AdminLeftServlet"></jsp:include>
		<div style="margin-left:150px">
		   	<ul class="class_date">
					<li id='class_month'>
						<c:forEach items="${topic}" var="t" varStatus="c" >
							 <a style="font-size:15px" href="AdminServlet?tid=${t.tid}"><b>${t.tname}</b></a>
						</c:forEach>
					</li>
				</ul>
					 <c:forEach items="${page.datas}" var="p" varStatus="c" >
					 	<li>
							<a href='NewsContentServlet?nid=${p.nid}'>${p.ntitle}</a><span style="float:right" > 作者：${p.nauthor}
							<a style="margin-left:20px;margin-right:20px" href="ModifyNewsServlet?nid=${p.nid}">修改</a>
			   		 		<a style="margin-right:20px" href="DeleteNewsServlet?nid=${p.nid}">删除</a>
			   		 		</span>
						</li>
					 </c:forEach>
					
					 <p align="right">当前页数:[${page.totalPages!=0?page.pageNo:0}/${page.totalPages}]&nbsp;
					 	<a href="AdminServlet?tid=${tid}&pageNo=1">首页</a>&nbsp;
					 	<c:if test="${page.pageNo>1}">
					 	<a href="AdminServlet?tid=${tid}&pageNo=${page.pageNo-1}">上一页</a>&nbsp;
					 	</c:if>
					 	<c:if test="${page.pageNo<page.totalPages}">
					 		<a href="AdminServlet?tid=${tid}&pageNo=${page.pageNo+1}">下一页</a>&nbsp;
					 	</c:if>
					 	
					 	<a href="AdminServlet?tid=${tid}&pageNo=${page.totalPages}">末页</a>&nbsp;
					  
					 </p>
				</ul>
   	</div>

	</div>
	<jsp:include page="/AdminFooterServlet"></jsp:include>
	
</body>
</html>